<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                template="/templates/ui.xhtml">

    <ui:define name="head">
        <style type="text/css">
            .col-95 {
                text-align: right;
            }

            .col-5 {
                text-align: left;
            }

            .col-80 {
            }

            .col-20 {
                width: 5%;
            }
        </style>

    </ui:define>

    <ui:define name="content">
        <div style="margin:5px;">
            <p:growl id="msgs" showDetail="false"/>
            <h:form>
                <p:panel header="接口平台应用状态">

                    <p:fieldset legend="当前银行端数据通信信息状态" toggleable="true" toggleSpeed="500">
                        <br/>
                        <p:dataTable id="pdt" style="width:100%;"
                                     dynamic="true" selectionMode="single"
                                     value="#{biAppStatusAction.notifyMessageList}" var="record"
                                     paginatorTemplate="{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                                     paginator="true" rows="15" paginatorPosition="bottom"
                                     rowsPerPageTemplate="100,50,30,15,5"
                                     emptyMessage="数据记录为空...">

                            <p:column headerText="银行代号" style="text-align:center" sortBy="#{record.bankcode}">
                                <h:outputText value="#{record.bankcode}"/>
                            </p:column>
                            <p:column headerText="银行名称" style="text-align:left">
                                <h:outputText value="#{biAppStatusAction.bankMap[record.bankcode]}"/>
                            </p:column>
                            <p:column headerText="接口代码" style="text-align:center" sortBy="#{record.opcode}">
                                <h:outputText value="#{record.opcode}"/>
                            </p:column>
                            <p:column headerText="接口名称" style="text-align:left">
                                <h:outputText value="#{biAppStatusAction.tradeMap[record.opcode]}"/>
                            </p:column>
                            <p:column headerText="最近交易时间" style="text-align:center" sortBy="#{record.notifydate}">
                                <h:outputText value="#{record.notifydate}">
                                        <f:convertDateTime pattern="yyyy-MM-dd HH:mm:ss" timeZone="GMT+8"/>
                                </h:outputText>
                            </p:column>
                            <p:column headerText="已被业务系统获取" style="text-align:center">
                                <h:outputText value="#{biAppStatusAction.boolType.valueOfAlias(record.getFlag).title}"/>
                            </p:column>

                        </p:dataTable>

                    </p:fieldset>
                </p:panel>
            </h:form>
        </div>
    </ui:define>

</ui:composition>